var express = require('express');
var router = express.Router();
const cateCtrl = require('../controllers/newscate.controller');

router.post('/data', cateCtrl.create);
router.get('/data/:id', cateCtrl.getData);
router.put('/data/:id', cateCtrl.update);
router.get('/list', cateCtrl.list);
router.delete('/data/:id', cateCtrl.remove);

module.exports = router;


